package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 相册表（当前用户的动态）
 * @author liuyp
 * @date 2021/01/22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "quanzi_album")
public class Album implements Serializable {
    /**主键id*/
    private ObjectId id;
    /**发布的动态id*/
    private ObjectId publishId;
    /**发布时间*/
    private Long created;
}